//
// Created by jack on 2022/3/13.
//

#ifndef MYMUDUO_GROUP_HPP
#define MYMUDUO_GROUP_HPP

#include <string>
#include <vector>
#include "groupuser.hpp"

class Group
{
public:
    Group(int id = -1,std::string name = "",std::string desc = "")
    {
        this->id = id;
        this->name = name;
        this->desc = desc;
    }

    void setId(int id)
    { this->id = id; }

    void setName(std::string name)
    { this->name = name; }

    void setDesc(std::string desc)
    { this->desc = desc; }

    int getId()
    {
        return this->id;
    }
    std::string getName()
    {
        return this->name;
    }
    std::string getDesc()
    {
        return this->desc;
    }
    std::vector<GroupUser>& getUser()
    {
        return this->User;
    }

private:
    int id;
    std::string name;
    std::string desc;
    std::vector<GroupUser> User;
};

#endif //MYMUDUO_GROUP_HPP
